package com.xx.service;

import com.github.pagehelper.PageInfo;
import com.xx.entity.Employees;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface IEmployeesService{
    //获取员工列表
    List<Employees> selectAllByEmpNameAndPhoneNumber(@Param("empName") String empName,
                                                     @Param("phoneNumber") String phoneNumber);

    Employees selectById(Integer employeeId);

    //新增
    int insertBatch(Employees employees);

    //分页
    PageInfo<Employees> getPage(@Param("empName") String empName,
                           @Param("phoneNumber") String phoneNumber,Integer pageNum);

    //修改
    int updateSelective(Employees employees);

    //删除
    int delByEmployeeId(Integer employeeId);

    //获取用户信息通过登录名和密码
    Employees selectAllByLoginNameAndPassword(@Param("loginName") String loginName,
                                              @Param("password") String password);
}
